package com.neudeu.zy;

public class Company {
    //成员变量
    //打印的工资月份
    int calculateMonth;
    ColaEmployee colaEmployee;

    //行为方法

    /**
     * 打印员工工资
     */
    public void printEmployeeSalary(){
        System.out.println(calculateMonth+"月份工资：姓名："+colaEmployee.geteName()
                +"，当月工资："+colaEmployee.getSalary(calculateMonth));

    }

    public Company() {
    }

    public Company(int calculateMonth, ColaEmployee colaEmployee) {
        this.calculateMonth = calculateMonth;
        this.colaEmployee = colaEmployee;
    }

    public int getCalculateMonth() {
        return calculateMonth;
    }

    public void setCalculateMonth(int calculateMonth) {
        this.calculateMonth = calculateMonth;
    }

    public ColaEmployee getColaEmployee() {
        return colaEmployee;
    }

    public void setColaEmployee(ColaEmployee colaEmployee) {
        this.colaEmployee = colaEmployee;
    }
}
